package com.huyi.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSONObject;
import com.huyi.common.result.APIResponse;
import com.huyi.web.service.RetryService;

import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@RestController
@RequestMapping("/retry")
public class RetryController {
   
    @Autowired
    private RetryService retryService;

	@ApiOperation(value = "rery重试机制demo")
	@RequestMapping(value = "/retryIndex", method = RequestMethod.GET)
	@ResponseBody
    public JSONObject retryIndex() throws Exception {
        log.info("重试机制开始...");
        //retryService.call("aaa");
        return APIResponse.returnSuccess();
    }

}
